package com.example.springbootflowabledemo.service.impl;

import com.example.springbootflowabledemo.service.HelloService;

import org.flowable.ui.modeler.domain.Model;
import org.flowable.ui.modeler.repository.ModelRepository;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;


public class HelloServiceImpl implements HelloService {

    @Autowired
    private ModelRepository modelRepository;

    @Override
    public Map<String, Object> add(Map<String, Object> requestMap) {
        System.out.println("触发调用");
        Model m = new Model();
        modelRepository.save(m);
        return null;
    }
}
